var globalData = {
	server:"http://stuapi.ysdjypt.com/api/",
	myToken:"66f3e355-d945-49a2-bd6a-a31cc99b33ed",
	setUserInfo:function (uid,uname,roleNames){
		sessionStorage.setItem("uid",uid);
		sessionStorage.setItem("uname",uname);
		sessionStorage.setItem("roleNames",roleNames);	
	},
	getCurUid: function (){
		return sessionStorage.getItem("uid");
	},
	getCurUName:function (){
		return sessionStorage.getItem("uname");
	},
	getCurRoleNames:function (){
		var rs = sessionStorage.getItem("roleNames");
		var arr = rs.split(",");
		var data = "[";
		for(var i=0;i<arr.length;i++){
			arr[i]= "\'"+arr[i]+"\'"; 
		}		
		return eval("["+arr.join()+"]");		
	}
};



